from PySide6.QtWidgets import QLineEdit
from styles.styles_elements import QLineEdit_Error


class LineEdit(QLineEdit):
    def __init__(self, parent=None):
        super(LineEdit, self).__init__(parent)

    def mousePressEvent(self, event):
        if self.styleSheet() == QLineEdit_Error:
            self.clear()
